# -*- coding:utf-8 -*-
class Solution:
    def FindContinuousSequence(self, tsum):
        # write code here
        # 双指针定位
        if tsum <= 1:
            return []
        begin = 1
        end = 2
        sum_num = begin + end
        res = []
        while begin < res:
            if sum_num == tsum:
                res.append([i for i in range(begin, end+1)])
                end += 1
                sum_num += end
            elif sum_num < tsum:
                end += 1
                sum_num += end
            else:
                sum_num -= begin
                begin += 1
        return res
